package com.adou.d10;

import java.util.function.Consumer;

public class ConsumerTest {
    public static void method(String name, Consumer<String> con) {
        con.accept(name);
    }

    public static void main(String[] args) {
        method("赵丽颖", (name)->{
            System.out.println(name);
        });
    }
}
